package com.project.bean.PersonBase;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("worm_info")
//虫害信息实体
public class WormBean {

    //虫害编号
    @TableId(value = "worm_id",type = IdType.AUTO)
    private int wormId;

    //虫害名称
    @TableField("worm_name")
    private String wormName;

    //寄主
    @TableField("worm_host")
    private String wormHost;

    //主要危害
    @TableField("worm_harm")
    private String wormHarm;

    //天敌
    @TableField("worm_enemy")
    private String wormEnemy;
    //繁殖描述
    @TableField("worm_breed")
    private String wormBreed;
    //防治措施
    @TableField("worm_measure")
    private String wormMeasure;
    //幼虫图片
    @TableField("worm_larva")
    private String wormLarva;
    //成虫图片
    @TableField("worm_imago")
    private String wormImago;


    public WormBean() {
    }

    public WormBean(String wormName, String wormHost, String wormHarm, String wormEnemy, String wormBreed, String wormMeasure, String wormLarva, String wormImago) {
        this.wormName = wormName;
        this.wormHost = wormHost;
        this.wormHarm = wormHarm;
        this.wormEnemy = wormEnemy;
        this.wormBreed = wormBreed;
        this.wormMeasure = wormMeasure;
        this.wormLarva = wormLarva;
        this.wormImago = wormImago;
    }


    public WormBean(int wormId, String wormName, String wormHost, String wormHarm, String wormEnemy, String wormBreed, String wormMeasure, String wormLarva, String wormImago) {
        this.wormId = wormId;
        this.wormName = wormName;
        this.wormHost = wormHost;
        this.wormHarm = wormHarm;
        this.wormEnemy = wormEnemy;
        this.wormBreed = wormBreed;
        this.wormMeasure = wormMeasure;
        this.wormLarva = wormLarva;
        this.wormImago = wormImago;
    }

    public int getWormId() {
        return wormId;
    }

    public void setWormId(int wormId) {
        this.wormId = wormId;
    }

    public String getWormName() {
        return wormName;
    }

    public void setWormName(String wormName) {
        this.wormName = wormName;
    }

    public String getWormHost() {
        return wormHost;
    }

    public void setWormHost(String wormHost) {
        this.wormHost = wormHost;
    }

    public String getWormHarm() {
        return wormHarm;
    }

    public void setWormHarm(String wormHarm) {
        this.wormHarm = wormHarm;
    }

    public String getWormEnemy() {
        return wormEnemy;
    }

    public void setWormEnemy(String wormEnemy) {
        this.wormEnemy = wormEnemy;
    }

    public String getWormBreed() {
        return wormBreed;
    }

    public void setWormBreed(String wormBreed) {
        this.wormBreed = wormBreed;
    }

    public String getWormMeasure() {
        return wormMeasure;
    }

    public void setWormMeasure(String wormMeasure) {
        this.wormMeasure = wormMeasure;
    }

    public String getWormLarva() {
        return wormLarva;
    }

    public void setWormLarva(String wormLarva) {
        this.wormLarva = wormLarva;
    }

    public String getWormImago() {
        return wormImago;
    }

    public void setWormImago(String wormImago) {
        this.wormImago = wormImago;
    }


    @Override
    public String toString() {
        return "WormBean{" +
                "wormId=" + wormId +
                ", wormName='" + wormName + '\'' +
                ", wormHost='" + wormHost + '\'' +
                ", wormHarm='" + wormHarm + '\'' +
                ", wormEnemy='" + wormEnemy + '\'' +
                ", wormBreed='" + wormBreed + '\'' +
                ", wormMeasure='" + wormMeasure + '\'' +
                ", wormLarva='" + wormLarva + '\'' +
                ", wormImago='" + wormImago + '\'' +
                '}';
    }
}
